package com.example.demo.controller

import org.joda.time.DateTime
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.GetMapping

@Controller
class HomeController {
    @GetMapping("/")
    fun Index(hashMap: HashMap<String, String>): String {
        hashMap["now"] = DateTime.now().toString("yyyy-MM-dd HH:mm:ss")
        return "index"
    }
}